import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;

/** Clase heredada de jbuttons
 * 
 * @author panche
 *
 */
public class Botones extends JButton {
	
	private JLabel label = new JLabel();
	private int codigo;
	
	public String getLabel() {
		return label.getText();
	}
	public int getCodigo() {
		return codigo;
	}
	public void setCodigo(int codigo) {
		this.codigo = codigo;
	}
	public Botones (String x){
		label.setText(x);
		label.setVisible(true);
		this.add(label);
	}
	public Botones (char x){
		label.setText(" "+x);
		label.setVisible(true);
		this.add(label);
	}
}
